ZIP.namespace('Cache.Widget');
/////////////////////////////////////////////////////////////////////////////////  
// Object tracking widget.. very simple for now!
// used to display a single object; we'll use the Console widget
// but here we don't scroll the app window.. we just clear it and redisplay the
// object each time
//
ZIP.Cache.Widget.ObjectTracker = function(Z) {
    function _constructor(obj) {

        var object = obj;
        var consoleWin = Z.Widget.Console.init().display('Tracking Object');
        
        function _log() {
            consoleWin.clear();
            consoleWin.log(object);
            return this;
        }
        function _close() {
            consoleWin.close();
            return this;
        }
        
        return{
            log: _log,
            close: _close
        }
    }
    
    function Widget(config) { 
        // ***** do something with config.. later
        return Widget;
    }
    Widget.init = _constructor;
    return Widget;


}